<!DOCTYPE html	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:sdu="http://sduept.com/jsf/cc">
<h:head>
	<link rel="stylesheet"
		href="#{request.contextPath}/resources/bootstrap/css/bootstrap.min.css" />
</h:head>
<h:body>
	<h:form id="form" style="margin-top:10px;margin-left:10px">
	<p:growl id="msgs" showDetail="true" />
	<p:layout fullPage="true">
		<p:layoutUnit position="center">
			<p:toolbar>
				<f:facet name="left">
					<p:commandButton value="保存" style="float:left;" update="form:msgs"
						actionListener="#{problemFeedbackController.save()}" oncomplete="parent.closeDlg()"/>
					<p:commandButton value="取消" style="float:right;" onclick="parent.closeDlg()"/>
				</f:facet>
			</p:toolbar>
			<p:panelGrid style="margin-top:10px;margin-left:10px">
				<p:row>
					<p:column>
						<h:outputText value="模块" />
					</p:column>
					<p:column>
						<p:autoComplete scrollHeight="400" dropdown="true"
							value="#{problemFeedbackController.problemFeedback.module}"
							completeMethod="#{problemFeedbackController.completeModule}">
						</p:autoComplete>
					</p:column>
					<p:column>
						<h:outputText value="问题分类" />
					</p:column>
					<p:column>
						<p:autoComplete scrollHeight="400" dropdown="true"
							value="#{problemFeedbackController.problemFeedback.category}"
							completeMethod="#{problemFeedbackController.completeProblemCategory}">
						</p:autoComplete>
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputText value="问题描述" />
					</p:column>
					<p:column colspan="3">
						<p:inputTextarea
							value="#{problemFeedbackController.problemFeedback.description}"
							style="width:100%;" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputText value="提出时间" />
					</p:column>
					<p:column>
						<p:calendar
							value="#{problemFeedbackController.problemFeedback.proposeTime}"
							navigator="true" pattern="yyyy-MM-dd HH:mm:ss" />
					</p:column>
					<p:column>
						<h:outputText value="提出人员" />
					</p:column>
					<p:column>
						<p:inputText
							value="#{problemFeedbackController.problemFeedback.proposer}" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputText value="通知时间" />
					</p:column>
					<p:column>
						<p:calendar
							value="#{problemFeedbackController.problemFeedback.notifyTime}"
							navigator="true" pattern="yyyy-MM-dd HH:mm:ss" />
					</p:column>
					<p:column>
						<h:outputText value="通知人员" />
					</p:column>
					<p:column>
						<p:inputText
							value="#{problemFeedbackController.problemFeedback.notifier}" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputText value="处理时间" />
					</p:column>
					<p:column>
						<p:calendar
							value="#{problemFeedbackController.problemFeedback.solveTime}"
							navigator="true" pattern="yyyy-MM-dd HH:mm:ss" />
					</p:column>
					<p:column>
						<h:outputText value="处理人员" />
					</p:column>
					<p:column>
						<p:inputText
							value="#{problemFeedbackController.problemFeedback.solver}" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputText value="计划完成时间" />
					</p:column>
					<p:column>
						<p:calendar
							value="#{problemFeedbackController.problemFeedback.planFinishTime}"
							navigator="true" pattern="yyyy-MM-dd HH:mm:ss" />
					</p:column>
					<p:column>
						<h:outputText value="处理情况" />
					</p:column>
					<p:column>
						<h:selectOneMenu style="width:160px;margin-right:20px;height:30px"
							value="#{problemFeedbackController.problemFeedback.handleState}">
							<f:selectItem itemLabel="待处理" itemValue="待处理" />
							<f:selectItem itemLabel="处理中" itemValue="处理中" />
							<f:selectItem itemLabel="已处理" itemValue="已处理" />
						</h:selectOneMenu>
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputText value="原因" />
					</p:column>
					<p:column colspan="3">
						<p:inputTextarea
							value="#{problemFeedbackController.problemFeedback.problemReason}"
							style="width:100%;" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputText value="处理过程" />
					</p:column>
					<p:column colspan="3">
						<p:inputTextarea
							value="#{problemFeedbackController.problemFeedback.handleProcess}"
							style="width:100%;" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputText value="备注" />
					</p:column>
					<p:column colspan="3">
						<p:inputTextarea
							value="#{problemFeedbackController.problemFeedback.remark}"
							style="width:100%;" />
					</p:column>
				</p:row>
			</p:panelGrid>
		</p:layoutUnit>
	</p:layout>
	
	</h:form>
</h:body>
</html>

